package a02threadcase2;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86131
 * Date: 2024-04-15
 * Time: 23:33
 */
public class MyRun implements Runnable{
    @Override
    public void run() {
        //书写线程要执行的代码
        for (int i = 0; i < 10; i++) {
            Thread t = Thread.currentThread();
            System.out.println(t.getName()+"HelloWorld!");
        }
    }
}
